package com.bambooshoot.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bambooshoot.common.annotation.ExcelDictFormat;
import com.bambooshoot.common.convert.ExcelDictConvert;
import com.bambooshoot.domain.BizLiquorRecords;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 白酒记录视图对象 biz_liquor_records
 *
 * @author mxc
 * @date 2024-11-23
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BizLiquorRecords.class)
public class BizLiquorRecordsVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 购买日期
     */
    @ExcelProperty(value = "购买日期")
    private Date purchaseDate;

    /**
     * 白酒品牌
     */
    @ExcelProperty(value = "白酒品牌", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "liquor_brand")
    private Integer brand;

    /**
     * 酒的简称
     */
    @ExcelProperty(value = "简称")
    private String shortName;

    /**
     * 规格:如 “1L*1”“500ml*6” 等
     */
    @ExcelProperty(value = "规格")
    private String specification;

    /**
     * 酒精度数
     */
    @ExcelProperty(value = "酒精度数")
    private String degree;

    /**
     * 体积，单位：毫升
     */
    @ExcelProperty(value = "毫升(ml)")
    private Long volume;

    /**
     * 价格(元)
     */
    @ExcelProperty(value = "价格(元)")
    private Double price;

    /**
     * 斤价(元)
     */
    @ExcelProperty(value = "斤价(元)")
    private Double unitPrice;

    /**
     * 平台名称
     */
    @ExcelProperty(value = "平台名称", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "liquor_platform")
    private Integer platform;

    /**
     * 店铺名称
     */
    @ExcelProperty(value = "店铺名称")
    private String shopName;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 酒的具体名称
     */
    @ExcelProperty(value = "全称")
    private String name;

}
